import zpBatchUpload from './zp-batch-upload'
import zpGlobalVariants from './zp-global-variants'
import zpSidebar from './zp-sidebar'
import zpLayout from './zp-layout'
import zpDateInput from './zp-date-input'
import avueSportScore from './avue-sport-score'
import avueScore from './avue-score'
const components = [
    zpBatchUpload,
    zpGlobalVariants,
    zpSidebar,
    zpLayout,
    zpDateInput,
    avueSportScore,
    avueScore
];

const install = function(Vue, opts = {}) {
    components.forEach(component => {
        Vue.component(component.name, component);
    });
};

/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    install,
    zpBatchUpload,
    zpGlobalVariants,
    zpSidebar,
    zpLayout,
    zpDateInput,
    avueSportScore,
    avueScore
};